package com.itheima.hello;

public class HelloWorld {   //工程、模块、包和类
    public static void main(String[] args) {    //main或psvm
        System.out.println("Hello World!");     //.sout
        //打印一条线
        System.out.println("------------------");
        printHelloWorld();
        System.out.println("------------------");
        printSum(1, 2);
        System.out.println("------------------");
    }

    //打印三行Hello World
    public static void printHelloWorld() {
        System.out.println("Hello World!");
        System.out.println("Hello World!");
        System.out.println("Hello World!");
    }

    //我要求任意两个数的整数和
    public static void printSum(int a, int b) {
        System.out.println(a + b);
    }
}